#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author：samge
# date：2024-08-06 09:30
# describe：

import random

generated_uids = set()


# 模拟生成随机的7位长度用户id
def generate_uid():
    uid = random.randint(1000000, 9999999)
    while uid in generated_uids:
        uid = random.randint(1000000, 9999999)
    generated_uids.add(uid)
    return uid